package com.bvgol.examples.springbootmybatisplus.mutipleDataSources.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname User
 * @Description TODO
 * @Date 2021/4/23 11:34
 * @Created by GUOCHEN
 */

/**
 * 用户信息表
 */
@Data

@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`User`")
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 出生日期
     */
    @TableField(value = "birthday")
    private Date birthday;

    private static final long serialVersionUID = 1L;
}
